//
//  BZThreadManager.h
//  MZBasic
//
//  Created by Sings on 2023/7/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class BZThreadQueue;
@interface BZThreadManager : NSObject

+ (instancetype) sharedInstance;

- (void) addThreadQueue:(BZThreadQueue *) queue;


/// 查询是否存在某后台任务
/// @param queueLabel 标签
- (BOOL) queueIsExistWithLabel:(NSString *) queueLabel;

/// 停止queueLabel的所有queue
/// @param queueLabel 标签
- (void) stopGroupWithQueueLabel:(NSString *) queueLabel;

@end

NS_ASSUME_NONNULL_END
